home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / tests / feval.tst < prev    next >
Text File  |  1999-09-16  |  311b  |  9 lines

  1. deff('[z]=f(x,y,t)','z=x^2+y^2+t');
  2. res=feval(1:10,1:5,list(f,10));
  3. res1=[];for j=1:5,res1=[res1, ((1:10).*(1:10))'+(j**2+10)*ones(10,1)];end
  4. if res<>res1 then pause,end
  5. deff('[z]=f(x,y)','z=x+%i*y');
  6. res=feval(1:10,1:5,f);
  7. res1=[];for j=1:5,res1=[res1, (1:10)'+%i*j*ones(10,1)];end
  8. if res<>res1 then pause,end
  9.